import Icon from '@/components/Icon';
import React from 'react';
import { LimitDiscountsCartStyle } from '../../constants';

const Cart = ({ isShowCart, cartStyle }) => {
  if (!isShowCart) {
    return null;
  }

  if (cartStyle === LimitDiscountsCartStyle.one) {
    return <Icon name="icon_add" className="goods-cart" size={34} />;
  }

  if (cartStyle === LimitDiscountsCartStyle.two) {
    return <Icon name="icon_shopping" className="goods-cart" size={34} />;
  }

  return null;
};

export default Cart;
